package cn.controller.marketing;

import cn.service.marketingService.MarketingServiceImpl.SpecialServiceImpl;
import entity.Result;
import entity.marketingEntity.SpecialCondition;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 朱颢阳
 * @description
 * @time 2024/8/30 13:59
 */
@RestController
@CrossOrigin
@RequestMapping("/marketing")
public class SpecialController {
    @Autowired
    SpecialServiceImpl service;
    @RequestMapping("/getspecials")
    public Result getspecials(@RequestBody SpecialCondition condition){
        return service.getspecials(condition);
    }
}
